# 基础镜像
FROM  openjdk:8-jre
# author
MAINTAINER edsta
# 设定时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 复制jar文件到路径
ARG JAR_FILE
COPY ${JAR_FILE} /
ARG CONFIG_FILE
COPY ${CONFIG_FILE} /
# 启动文件服务
ENTRYPOINT ["java",\
    "-Xmx2g",\
    "-Xms1g",\
    "-Xmn500m",\
    "-Xss4096k",\
    "-jar",\
    "-Djasypt.encryptor.password=edsta@ehotting&CEPREI",\
    "-Dspring.main.allow-circular-references=true",\
    "-Dspring.main.allow-bean-definition-overriding=true",\
    "/edsta-modules-file.jar"]


      # 10.161.0.47
      # 10.161.0.48 cae
      # 10.161.0.49
      # 10.161.0.50
      # 10.161.0.51
      # 10.161.0.52
      # 10.161.0.53
      # 10.161.0.54
      # 10.161.0.55
      # 10.161.0.56
      # 10.161.0.57
      # 10.161.0.58
      # 10.161.0.59
      # 10.161.0.60
      # 10.161.0.61
      # 10.161.0.62
      # 10.161.0.63
      # 10.161.0.64